package com.example.kuaizu.mapper;

import com.example.kuaizu.em.ProjectDelectStatus;
import com.example.kuaizu.pojo.*;
import com.example.kuaizu.pojo.dto.UserEmailDao;
import com.example.kuaizu.pojo.ov.HouProjectOv;
import com.example.kuaizu.pojo.ov.ProjectOv;
import kuaizu.common.param.PromotionInfoParam;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface EmailPromotionMapper {

    Integer  insertPromotionArrayObjectOv(EmailPromotionParm emailPromotion) ;

    List<UserEmailDao> selectEmailBySchoolAndMajor(@Param("promotionArrayObjects") PromotionArrayObject[] promotionArrayObject);

    void updatePromotionStatus(@Param("openid") String openid,
                               @Param("projectId") String projectId,
                               @Param("promotionStatus") ProjectDelectStatus projectDelectStatus);

    //添加推广信息
    void insertPromotionData(@Param("id") Integer projectId, @Param("description") String bytes, @Param("text") String info);

    List<HouProjectOv> getPromotionInfo(PromotionInfoParam req);

    List<HouProjectOv> getPromotionIdsInfo(PromotionInfoIdsParam req);

    List<UserEmailDao> selectEmailBySchool(List<Integer> schoolList);

    List<UserEmailDao> selectEmailByMajor(List<Integer> majorlList);
}
